package cn.itsource.thread.method.join;

/**
 *	显示图片线程类
 */
public class ShowThread extends Thread {
	private DownThread down;
	
	public ShowThread(DownThread down) {
		super();
		this.down = down;
	}

	@Override
	public void run() {
		System.out.println("------正在显示");
		try {
			//等待下载线程结束后，再继续执行显示线程
			down.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		System.out.println("------显示完成！");
		
	}
}
